﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using Moq;
using EnvDTE;

namespace FindFile.Tests
{
    public class TestHelper
    {
        static internal IEnumerator<T> E<T>(params T[] items)
        {
            foreach (T item in items)
            {
                yield return item;
            }
        }

        static internal IList<T> L<T>(params T[] items)
        {
            return new List<T>(items);
        }

        static internal PhysicalFile CreatePhysicalFile(string name)
        {
            var mockProjectItem = new Mock<ProjectItem>();
            mockProjectItem.Expect<string>(x => x.Name).Returns(name);
            PhysicalFile editableItem = new PhysicalFile(mockProjectItem.Object);
            return editableItem;
        }

    }
}
